#include<iostream>
#include<stdlib.h>
using namespace std;

class A
{
public:
	A()
	{
		n++;
	}

	A(const A& aa)
	{
		n++;
	}

	static int GetN()
	{
		
		return n;
	}






	int a = 0;
	static int n;
};

int A::n = 0;

A Func()
{
	A aa;

	return aa;
}

int main()
{
	A aa1;
	A aa2;
	
	Func();
	cout << aa1.GetN() << endl;
	cout << A::GetN() << endl;
	

	return 0;
}